package com.myspringmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/pathVariableController")
public class PathVariableController {

    @RequestMapping("pathVariableControlle/{userId}")
    public String pathVariableController(@PathVariable("userId")String userId){
        System.out.println("userId : " + userId);
        return "success";
    }
}
